﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using OrangePrj.Forms;
namespace OrangePrj
{
    static class Program
    {
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

#if DEBUG

            FormMain form = new FormMain(new User(true));
            Application.Run(form);
            //FormModelView model = new FormModelView(new Project());
            //Application.Run(model);
#else
            FormLogin dlg = new FormLogin();
            dlg.Height = 173;

            Application.Run(dlg);

            if (dlg.getAuthorization())
            {
                FormMain form = new FormMain(new User(dlg.userName, dlg.password, dlg.admin, true));
                Application.Run(form);
            }
#endif


                                   
        }
    }
}
